"""
API v1 路由汇总
"""

from fastapi import APIRouter
from app.api.v1.endpoints import lineage, auth, users, roles, permissions, routes, datasources, sync

api_router = APIRouter()

# 注册子路由
api_router.include_router(auth.router, prefix="/auth", tags=["认证"])
api_router.include_router(users.router, prefix="/users", tags=["用户管理"])
api_router.include_router(roles.router, prefix="/roles", tags=["角色管理"])
api_router.include_router(permissions.router, prefix="/permissions", tags=["权限管理"])
api_router.include_router(routes.router, prefix="/routes", tags=["路由管理"])
api_router.include_router(datasources.router, prefix="/datasources", tags=["数据源管理"])
api_router.include_router(sync.router, prefix="/sync", tags=["数据同步"])

api_router.include_router(lineage.router, prefix="/lineage", tags=["lineage"])
